<?
class ConvertFont{
	var $lower = array('á','à','ả','ã','ạ','ă','ắ','ằ','ẳ','ẵ','ặ','â', 'ấ','ầ','ẩ','ẫ','ậ','đ','é','è','ẻ','ẽ','ẹ','ê','ế','ề','ể','ễ','ệ','í','ì','ỉ','ĩ','ị','ó','ò','ỏ','õ','ọ','ơ','ớ','ờ','ở','ỡ','ợ','ô','ố','ồ','ổ','ỗ','ộ','ú','ù','ủ','ũ','ụ','ư','ứ','ừ','ử','ữ','ự','ý','ỳ','ỷ','ỹ','ỵ','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z');
	var $upper=array('Á','À','Ả','Ã','Ạ','Ă','Ắ','Ằ','Ẳ','Ẵ','Ặ','Â', 'Ấ','Ầ','Ẩ','Ẫ','Ậ','Đ','É','È','Ẻ','Ẽ','Ẹ','Ê','Ế','Ề','Ể','Ễ','Ệ','Í','Ì','Ỉ','Ĩ','Ị','Ó','Ò','Ỏ','Õ','Ọ','Ơ','Ớ','Ờ','Ở','Ờ','Ợ','Ô','Ố','Ồ','Ổ','Ỗ','Ộ','Ú','Ù','Ủ','Ũ','Ụ','Ư','Ứ','Ừ','Ử','Ữ','Ự','Ý','Ỳ','Ỷ','Ỹ','Ỵ','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');
    var $NoMarkLower=array('a','a','a','a','a','a','a','a','a','a','a','a', 'a','a','a','a','a','d','e','e','e','e','e','e','e','e','e','e','e','i','i','i','i','i','o','o','o','o','o','o','o','o','o','o','o','o','o','o','o','o','o','u','u','u','u','u','u','u','u','u','u','u','y','y','y','y','y','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z');
    var $NoMarkUpper=array('A','A','A','A','A','A','A','A','A','A','A','A', 'A','A','A','A','A','D','E','E','E','E','E','E','E','E','E','E','E','I','I','I','I','I','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','U','U','U','U','U','U','U','U','U','U','U','Y','Y','Y','Y','Y','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');
		
	function toUpper ($text) {
		$text=str_replace($this->lower,$this->upper,$text);
		return $text;
	}
	
	function toLower ($text) {
		$text=str_replace($this->upper,$this->lower,$text);
		return $text;
	}	
		
	function toNoMark ($text) {
		$text=str_replace($this->upper,$this->NoMarkUpper,$text);
		$text=str_replace($this->lower,$this->NoMarkLower,$text);
		return $text;
	}	
		
}
	
?>

